package com.bolang.onlycode.demo.MyThread;


public class Game {
    public static void main(String[] args) throws InterruptedException {
        GoalNotifier goalNotifier = new GoalNotifier();
        Thread thread = new Thread(goalNotifier);
        thread.start();
        Thread.sleep(3000);
        System.out.println(Thread.currentThread().getName());
        goalNotifier.setGoal(true);



    }
}
